import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import {ExamineQuery,ExamineForm} from '@/api/system/examine/types'

/**
 * 审核配置List
 *
 * @param queryParams
 */
export function casualCheckPages(queryParams?: ExamineQuery): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/pages',
    method: 'get',
    params: queryParams,
  });
}
/**
 * 审核配置新增
 *
 * @param queryParams
 */
export function casualCheckAdd(queryParams?: ExamineForm): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/add',
    method: 'post',
    data: queryParams,
  });
}
/**
 * 审核配置修改
 *
 * @param queryParams
 */
export function casualCheckEdit(queryParams?: ExamineForm): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/edit',
    method: 'post',
    data: queryParams,
  });
}
/**
 * 审核配置删除
 *
 * @param queryParams
 */
export function casualCheckDel(id: number|string): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/del?id='+id,
    method: 'get',
  });
}
/**
 * 业务类型下拉框
 *
 * @param queryParams
 */
export function businessOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/businessOptions',
    method: 'get',
  });
}
/**
 * 审核人类型下拉框
 *
 * @param queryParams
 */
export function checkOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/checkOptions',
    method: 'get',
  });
}
/**
 * 用户下拉框
 *
 * @param queryParams
 */
export function engineerOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/engineerOptions',
    method: 'get',
  });
}
/**
 * 外部-企业下拉框
 *
 * @param queryParams
 */
export function enterpriseOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/enterpriseOptions',
    method: 'get',
  });
}
/**
 * 内部人员下拉框
 *
 * @param queryParams
 */
export function internalOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/internalOptions',
    method: 'get',
  });
}
/**
 * 外部-个人下拉框
 *
 * @param queryParams
 */
export function personOptions(): AxiosPromise<OptionType[]> {
  return request({
    url: '/web/casual_check/personOptions',
    method: 'get',
  });
}
